home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: Parallel I/O in MS Visual C/C++
- Date: 2 Mar 1996 23:19:17 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4hal1l$kfq@news1.usa.pipeline.com>
- References: <4h9n6q$psh@vip.cybercity.dk>
- NNTP-Posting-Host: pipe14.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 02, 1996 15:10:35 in article <Parallel I/O in MS Visual C/C++>,
- 'monsted@cybercity.dk (Monsted)' wrote:
-
-
- >Does anybody know how to read/write from/to an address, specifically
- >the one pointing to LPT1? I just need to read/write single bits, but
- >whole ranges would be OK as well.
- >
- Look into CreateFile and CreateFileEx WIN32 API functions. I haven't
- used it for parallel ports; however, I have written programs to access
- serial ports with CreateFile and works just fine. According to the
- MSVC++40 online docs, it's supposed to work for parallel also.
-
- Search for subject "Communications Overview", then start clicking
- on the right arrow to find the necessary topics to access ports.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-